import Layout from '@/layout/index.vue';
import type { AppRoute } from '@/types/route';

const blogViewRouter: AppRoute[] = [
  {
    path: '/blogView',
    component: Layout,
    redirect: '/blogView/index',
    name: 'blogView',
    meta: {
      title: '文章',
      icon: 'chat-square',
      roles: ['GUEST', 'USER']
    },
    children: [
      {
        path: ':blogId',
        component: () => import('@/views/blogView/index.vue'),
        name: 'blogViewShow',
        meta: {
          title: '文章',
          icon: 'chat-square',
          roles: ['GUEST', 'USER']
        },
        hidden: true
      }
    ],
    hidden: true
  }
];

export default blogViewRouter;
